QT -= gui

CONFIG += c++11 console
CONFIG -= app_bundle

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += ./ /mnt/qt6/lvgl /mnt/qt6/lvgl/lvgl-8.2.0

INCLUDEPATH += /usr/include/tirpc
LIBS += -lnsl -ltirpc

DEFINES += LV_CONF_INCLUDE_SIMPLE LV_LVGL_H_INCLUDE_SIMPLE LV_DEMO_CONF_INCLUDE_SIMPLE

INCLUDEPATH += ../vd_common

SOURCES += \
        vd_lvgl_client.c \
        ../vd_common/vd_lvgl_clnt.c \
        ../vd_common/vd_lvgl_xdr.c

HEADERS += \
    lv_conf.h \
    ../vd_common/vd_lvgl.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    ../lvgl_rpc/vd_lvgl.x \
    ../lvgl_rpc/Makefile.vd_lvgl \
    ../lvgl_rpc/vd_lvgl_client.c \
    ../lvgl_rpc/vd_lvgl_clnt.c \
    ../lvgl_rpc/vd_lvgl.h \
    ../lvgl_rpc/vd_lvgl_server.c \
    ../lvgl_rpc/vd_lvgl_svc.c \
    ../lvgl_rpc/vd_lvgl_xdr.c
